// <copyright file="ColumnChart.aspx.cs" company="YUIAsp.Net">
// Copyright (c) 2009 All Right Reserved
// </copyright>
// <author>raul popescu</author>
// <email>dev@yuiasp.net</email>
// <date>2009-01-30</date>
// <summary>YUIAsp.Net File</summary>

using System;
using YUIAspNet;

namespace YUIAspNetDemo.Chart
{
    public partial class ColumnChart : BaseDemoPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LocalDataSource source = new LocalDataSource();

            source.AddColumn("Month");
            source.AddColumn("YUI");
            source.AddColumn("ASP.NET");

            source.AddRow("Oct", 1354, 1442);
            source.AddRow("Nov", 1326, 1496);
            source.AddRow("Dec", 1292, 1582);
            source.AddRow("Jan", 1354, 1442);

            colChart.Source = source;
            colChart.YAxis = new NumericAxis { Maximum=2000, Minimum=100 };
        }
    }
}
